import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false


// 引入element
import {
	Button,
	Cascader,
	Radio,
	RadioGroup,
	Autocomplete,
	Input,
	Checkbox,
	CheckboxGroup,
	Select,
	Option,
	Upload,
	Dialog,
	Table,
	Image,
	Timeline,
	TimelineItem,
	Message,
	Steps,
	Step,
	Form,
	FormItem,
	Tabs,
	TabPane,
	TableColumn,
	InputNumber,
	DatePicker,
	Loading,
	Drawer,
	Link,
	MessageBox,
	Slider,
	Divider,
	Row,
	Col,
	Card,
	TimeSelect,
	Popover,
	Tag,
	Popconfirm,
	Tree 
} from "element-ui";

Vue.use(Card);
Vue.use(Button);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Image);
Vue.use(Tree);
Vue.use(Timeline);
Vue.use(TimelineItem);
Vue.use(Table);
Vue.use(Popconfirm);
Vue.use(Steps);
Vue.use(Step);
Vue.use(Dialog);
Vue.use(Upload);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(TableColumn);
Vue.use(Select);
Vue.use(Option);
Vue.use(Input);
Vue.use(InputNumber);
Vue.use(DatePicker);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(RadioGroup);
Vue.use(Popover);
Vue.use(Cascader);
Vue.use(Radio);
Vue.use(Autocomplete);
Vue.use(Link);
Vue.use(Drawer);
Vue.use(Slider);
Vue.use(Loading.directive);
Vue.use(Divider);
Vue.use(Row);
Vue.use(Col);
Vue.use(TimeSelect);
Vue.use(Tag);

Vue.prototype.$message = Message;

import YcTable from "./components/YCTable";
Vue.use(YcTable);
// 引入axios
import axios from 'axios';
Vue.prototype.$axios = axios;

// 引入样式
import './assets/common.css';

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
